
class: Its a keyword used to define the class name in java code.
In java the class can be declared either with public OR default access modifier OR Abstract OR final keyword
Ex:
class Sample {}
public class Sample {}
abstract class Sample {}
final class Sample {}


Sample: It is name given to the class. The class name must start with capital letter. Class name is a identifier in java, hence we cannot create a duplicate class within the same package.


{
}
block. Every artifact in java will have open and closed brackets.


public: It is a access modifier in java. The public members can be accessed any where within the project.


static: 
 - It is a keyword to define the static members.
 - Static members belongs to the class hence we no need to create a object to access the static members.
 - for static members, the memory allocation takes place at runtime.
 - We use static members for better memory management.
 - static members includes:
   (1) static variables
   (2) static methods
   (3) static block

   
void: it is a keyword used for methods only. This indicates that the method is not returning any values.


main: 
 - It is a built-in method inside java.lang (default package in java) package.
 - It is a Thread in java. Hence it acts as a entry point in java
 - It is mainly used to run the java program.

 
String: It is a final built-in class & as well as datatype in java.

args[]: it is a single dimentional array

Ex: String args[] : args is a array which accepts String as a value.

main is a static method with public scope & it won't return any value. It accepts array of String object as a arguments.


System: it is a pre-defined final class in java.lang package.

out: it is a static object inside System class

println OR print: it is a overloaded method in out object. It is a stream object.